<?php

require_once(SITE_ROOT . 'lib/Smarty/Smarty.class.php');

// Extend the Smarty object
class SmartyMaptrick extends Smarty {

	function __construct()
	{
		// Class Constructor.
		$this->Smarty();

		// Set Smarty directories
		$this->template_dir = SITE_ROOT . 'templates/';
		$this->compile_dir  = SITE_ROOT . 'tmp/templates_c/';
		$this->config_dir   = SITE_ROOT . 'config/';
		$this->cache_dir    = SITE_ROOT . 'tmp/cache/';

		// Enable debugging via URL
		// This is recommended for development phases only
		$smarty->debugging_ctrl = 'URL';
	}

}

?>